package com.jiazhong.basic.shuxin.design.责任链模式;

public class App {

    public static void main(String[] args) {
        Monitor monitor = new Monitor();
        Instructor instructor = new Instructor();
        Dean dean = new Dean();
        monitor.setNextHandler(instructor);
        instructor.setNextHandler(dean);
        monitor.handler(2);
    }
}
